package com.huqu.utils;

import javax.faces.application.FacesMessage;
import javax.faces.application.FacesMessage.Severity;

public class ApplicationConstant {
	public static final String INT_PARAM = "inparam";
	public static final String OUT_PARAM_VALUE = "outvl";
	public static final String PATHFILE = "E://Tai lieu hoc tap//DEV//workspace//huongnghiep//src//main//webapp//lucene"; // lưu chỉ mục
	public static final String KEY_SEARCH="key_search";
	public static final int LIMIT = 5;
	public static final String URL_IMAGE_BAIVIET="/images/upload/baiviet/";
	public static final String URL_IMAGE_THELOAI="/images/upload/theloai/";
	public static final String URL_IMAGE_VIDEO="/images/upload/video/";
	public static final String URL_NO_IMAGE="/images/upload/no-image.jpg";
	
	// vnTockenizer
	public static final String VNTOKENIZER_PROPERTIES_FILE="E://luanvan//vntoken//tokenizer.properties";
	//public static final String VNTOKENIZER_PROPERTIES_FILE="tokenizer.properties";
	public static final String SRC_FILE_VNTOKENIZER="E:/luanvan/vntoken/";
	
	/******************** Name Field Index - LUCENE *************************/
	public static final String FIELD_PS100 = "ps100";
	public static final String FIELD_SV101 = "sv101";
	public static final String FIELD_SV102 = "sv102";
	public static final String FIELD_SV103 = "sv103";
	
	/******************** Name Dao *************************/
	public static final String REPOSITORY_NAME_Q100 = "q100Dao";
	public static final String REPOSITORY_NAME_N100 = "n100Dao";
	public static final String REPOSITORY_NAME_N200 = "n200Dao";
	public static final String REPOSITORY_NAME_N300 = "n300Dao";
	public static final String REPOSITORY_NAME_N400 = "n400Dao";
	public static final String REPOSITORY_NAME_N500 = "n500Dao";
	public static final String REPOSITORY_NAME_S100 = "s100Dao";
	public static final String VNTOCKENDAO = "vntockenDao";
	
	/******************** Parameter in pretty-face *************************/
	public static final String PRETTY_PARA_LANG = "paralang";
	public static final String PRETTY_PARA_IDBAIVIET = "paraidbaiviet";
	public static final String PRETTY_PARA_IDVIDEO = "paraidvideo";
	public static final String PRETTY_PARA_LOAICAUHOI = "paraloaicauhoi";
	public static final String PRETTY_PARA_LOAITINTUC = "paraloaitintuc";
	
	/******************* MESSAGE *****************/
	public static final Severity SEVERITY_INFO = FacesMessage.SEVERITY_INFO;
	public static final Severity SEVERITY_FATAL = FacesMessage.SEVERITY_FATAL;
	public static final Severity SEVERITY_WARN = FacesMessage.SEVERITY_WARN;
	public static final String FACES_MESSAGES = FacesMessage.FACES_MESSAGES;
	public static final Severity SEVERITY_ERROR = FacesMessage.SEVERITY_ERROR;
}
